﻿@using VirtualPress.Infrastructure.Entities.Entity;
@{
    Periodical journal = ViewBag.Journal;
    ViewBag.Title = "新建期数 -- " + journal.Name;
    Layout = "/Areas/WorkSpace/Views/Shared/_WorkSpace.cshtml";
}
<div id="content-header">
    <h1>
        创建新期数</h1>
</div>
<div id="breadcrumb">
    <a href="/WorkSpace/magazine/index" class="tip-bottom"><i class="icon-home"></i>起始页</a> <a href="/workspace/console/publish">
        稿件出版</a> <a href="javascript:" class="current">创建新期数</a>
</div>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
                    <span class="icon"><i class="icon-pencil"></i></span>
                    <h5>
                        新创建期数</h5>
                    <h5 style="float: right; color: Red;">
                        *为必填</h5>
                </div>
                <div class="widget-content nopadding">
                    <form id="form-wizard" class="form-horizontal" enctype="multipart/form-data" method="post" action="/WorkSpace/magazine/newpublish">
                    <div id="form-wizard-1" class="step">
                        @if (ViewBag.Error != null)
                        {
                        <div class="alert alert-error">@ViewBag.Error</div>
                        }
                        <div class="control-group">
                            <label class="control-label">
                                本期期号 (*)
                            </label>
                            <div class="controls">
                                <input id="txtManuscriptcode" type="text" name="Manuscriptcode" class="{required:true}" />
                                <span class="help-block">例 201301</span>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">
                                本期封面图片 (*)
                            </label>
                            <div class="controls">
                                <input id="txtcover" type="file" name="Cover" class="{required:true,accept:'jpg|png'}" />
                                <span class="help-block">jpg、png only!</span>
                            </div>
                        </div>
                        <div class="control-group" style="padding-bottom:10px;">
                            <label class="control-label">
                                预计出版时间 (*)
                            </label>
                            <div class="controls">
                                <div id="datetimepicker" class="input-append span3">
                                    <input id="txtPublishDate" data-format="yyyy-MM-dd" type="text" name="PublishDate"
                                        class="{required:true,dateISO:true}" />
                                    <span class="add-on"><i class="icon-calendar" data-time-icon="icon-time" data-date-icon="icon-calendar">
                                    </i></span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-actions">
                        <input id="next" class="btn btn-primary" type="submit" value="保存" />
                    </div>
                    <div id="submitted">
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@section tail
{
    <script type="text/javascript" src="/scripts/jquery.validate.js"></script>
    <script type="text/javascript" src="/scripts/unicorn.wizard.js"></script>
    <script type="text/javascript" src="/scripts/jquery.metadata.js"></script>
    <script type="text/javascript" src="/scripts/jquery.wizard.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#likpublish').addClass('open active');
            $('#datetimepicker').datetimepicker({
                pickTime: false
            });
        });
    </script>
}
